﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STAR.Spring.Framework.Module.Cache
{
    public class CacheHelper
    {
        public static Config.ConfigInfo GetConfigInfo()
        {
            string name = "ConfigInfo";
            Object info = System.Web.HttpContext.Current.Cache[name];
            if (info == null)
            {
                info = (Config.ConfigInfo)System.Configuration.ConfigurationManager.GetSection("STAR.SPRING/Resource");
                System.Web.HttpContext.Current.Cache[name] = info;
            }
            return (Config.ConfigInfo)info;
        }
    }
}
